package com.sxpi.chapter01.productb;

import com.sxpi.chapter01.Chair;
import com.sxpi.chapter01.Desk;
import com.sxpi.chapter01.factory.FamilyFactory;
import com.sxpi.chapter01.producta.WoodeDesk;

/**
 * @Author: 董伟豪
 * @Date: 2023/2/5 9:07
 */
public class WoodeFamilyFactoryImpl implements FamilyFactory {

    @Override
    public Desk createDesk() {
        return new WoodeDesk();
    }

    @Override
    public Chair createChair() {
        return new WoodeChair();
    }
}
